package cn.doit.scala.day02.tuple

/**
 * @DATE 2021/12/25/16:24
 * @Author MDK
 * @Version 2021.2.2
 * */
object C01_Tuple01 {
  def main(args: Array[String]): Unit = {
    val tuple: (String, String, Double) = ("laona","math",8.5)
    
    //获取属性值
    val name: String = tuple._1
    val subject: String = tuple._2
    val score: Double = tuple._3

    //元组中最多存储22个元素
    val tuple1 = new Tuple3[String, String, Double]("laona", "math", 8.5)
    println(tuple1._3)
  }
}
